package com.atguigu.thymeleaf.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author jinhui
 * @create 2021-08-07 22:11
 */
@Controller
public class HelloController {
    @GetMapping("test")
    public String test(Model model) {
        model.addAttribute("msg", "hello, Thymeleaf!");
        return "hello";

    }

}
